package com.aluka.nirvana.framework.core.exception;

/**
 * 业务提示异常
 * @author gongli
 * @since 2019/12/25
 */
public class BusinessException extends BaseException {
    private static final long serialVersionUID = 4773191322243855500L;


    public <T extends Enum<T> & ErrorEnumInterface> BusinessException(T errorEnum) {
        super(errorEnum, "");
    }

    public <T extends Enum<T> & ErrorEnumInterface> BusinessException(T errorEnum, String additionalMessage) {
        super(errorEnum, additionalMessage);
    }

    public <T extends Enum<T> & ErrorEnumInterface> BusinessException(T errorEnum, String additionalMessage, Throwable cause) {
        super(errorEnum, additionalMessage, cause);
    }

    public BusinessException(String errorCode, String message, Throwable cause) {
        super(errorCode, message, cause);
    }
}